/*
 * AS/NET American Smart Systems & Networks
 * Administrador de Menus
 * Creado en Oct 27 de 2008
 */
package com.udistrital.framework.ldap;

import java.util.List;

import com.udistrital.framework.util.UtilLDAP;

/**
 * Helper de funciones de LDAP
 * @author Ing. Wilson Andres Franco
 * @version 1.0
 * 
 */
public class LDAPHelper 
{
	private static LDAPHelper unicaInstancia =	new LDAPHelper();
	
   	/**
   	 * Singleton
   	 * @return
   	 */
   	public static LDAPHelper getInstance() 
   	{
		return unicaInstancia;
	}
	
	
	/**
	 * Validacion de usuario
	 * @param login
	 * @param password
	 * @return
	 */
	public boolean authenticateUser(String login, String password)
	{
		return UtilLDAP.authenticateUser(login,password);
	}
	

	/**
	 * Listado de Usuarios
	 * @param login
	 * @param password
	 * @return
	 */
	@SuppressWarnings("rawtypes")
	public List listDirectoryUserAccountsAndDisplayNames(String login, String password)throws Exception
	{
		return UtilLDAP.listDirectoryUserAccountsAndDisplayNames(login,password);
	}
	

}
